
def outbound_1():
  """Outbound call DN1 to ExtDn, release DN1"""
  SipPhone1.MakeCall(Ext1DN2)
  Ext1SipPhone2.AnswerCall()
  SipPhone1.ReleaseCall()

def outbound_2():
  """Outbound call DN1 to ExtDn, abnormal release DN1"""
  SipPhone1.MakeCall(Ext1DN2)
  SipPhone1.ReleaseCall()

def outbound_3():
  """Outbound call DN1 to ExtDn, release ExtDn"""
  SipPhone1.MakeCall(Ext1DN2)
  Ext1SipPhone2.AnswerCall()
  Ext1SipPhone2.ReleaseCall()

def outbound_6():
  """DN1 call to DN2, DN2 two step transfer to ExtDN, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(Ext1DN2)
  Ext1SipPhone2.AnswerCall()
  SipPhone2.CompleteTransfer()
  SipPhone1.ReleaseCall()

def outbound_7():
  """DN1 call to DN2, DN2  tinit  transfer to ExtDN,  abnormal release DN2, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(Ext1DN2)
  SipPhone2.ReleaseCall()
  SipPhone1.ReleaseCall()

def outbound_8():
  """DN1 call to DN2, DN2 2step transfer to ExtDN,  completed before cons. party answer, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateTransfer(Ext1DN2)
  SipPhone2.CompleteTransfer()
  Ext1SipPhone2.AnswerCall()
  SipPhone1.ReleaseCall()

def outbound_9():
  """DN1 call to DN2, DN2 conference to ExtDN, release DN1,DN2"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateConference(Ext1DN2)
  Ext1SipPhone2.AnswerCall()
  SipPhone2.CompleteConference()
  SipPhone1.ReleaseCall()
  SipPhone2.ReleaseCall()

def outbound_10():
  """DN1 call to DN2, DN2 cinit conference to ExtDN, abnormal release DN2, release DN1"""
  SipPhone1.MakeCall(DN2)
  SipPhone2.AnswerCall()
  SipPhone2.InitiateConference(Ext1DN2)
  SipPhone2.ReleaseCall()
  SipPhone1.ReleaseCall()

